//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    item: {
      subject: "617fe461-0a27-4771-a0ff-538f9e7b59cc",
      suboption: ["A . succeed", "B . access", "C . success"],
      title: "根据听到的录音来选择听到的英文单词",
      typecode: "单选题",
      queding:"确定",
      quxiao: "取消",
      
    }
  },

  /**
 * 生命周期函数--监听页面初次渲染完成
 */
  onReady: function () {
    //获得dialog组件
    this.dialog = this.selectComponent("#dialog");
  },

  showDialog() {
    this.dialog.showDialog();
  },

  //取消事件
  _cancelEvent() {
    console.log('你点击了取消');
    this.dialog.hideDialog(this.data.item.quxiao);
  },
  //确认事件
  _confirmEvent() {
    console.log('你点击了确定');
    this.dialog.hideDialog(this.data.item.queding);
  },
  cc:function(){
    console.log('调用我的');
  }

})